﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020001FD RID: 509
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueBuff : IMessage<ChessRogueBuff>, IMessage, IEquatable<ChessRogueBuff>, IDeepCloneable<ChessRogueBuff>, IBufferMessage
	{
		// Token: 0x170006B0 RID: 1712
		// (get) Token: 0x060016EA RID: 5866 RVA: 0x00041595 File Offset: 0x0003F795
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueBuff> Parser
		{
			get
			{
				return ChessRogueBuff._parser;
			}
		}

		// Token: 0x170006B1 RID: 1713
		// (get) Token: 0x060016EB RID: 5867 RVA: 0x0004159C File Offset: 0x0003F79C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueBuffReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170006B2 RID: 1714
		// (get) Token: 0x060016EC RID: 5868 RVA: 0x000415AE File Offset: 0x0003F7AE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueBuff.Descriptor;
			}
		}

		// Token: 0x060016ED RID: 5869 RVA: 0x000415B5 File Offset: 0x0003F7B5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueBuff()
		{
		}

		// Token: 0x060016EE RID: 5870 RVA: 0x000415C8 File Offset: 0x0003F7C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueBuff(ChessRogueBuff other) : this()
		{
			this.buffList_ = other.buffList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060016EF RID: 5871 RVA: 0x000415F2 File Offset: 0x0003F7F2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueBuff Clone()
		{
			return new ChessRogueBuff(this);
		}

		// Token: 0x170006B3 RID: 1715
		// (get) Token: 0x060016F0 RID: 5872 RVA: 0x000415FA File Offset: 0x0003F7FA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<RogueCommonBuff> BuffList
		{
			get
			{
				return this.buffList_;
			}
		}

		// Token: 0x060016F1 RID: 5873 RVA: 0x00041602 File Offset: 0x0003F802
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueBuff);
		}

		// Token: 0x060016F2 RID: 5874 RVA: 0x00041610 File Offset: 0x0003F810
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueBuff other)
		{
			return other != null && (other == this || (this.buffList_.Equals(other.buffList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060016F3 RID: 5875 RVA: 0x00041644 File Offset: 0x0003F844
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.buffList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060016F4 RID: 5876 RVA: 0x00041678 File Offset: 0x0003F878
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060016F5 RID: 5877 RVA: 0x00041680 File Offset: 0x0003F880
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060016F6 RID: 5878 RVA: 0x00041689 File Offset: 0x0003F889
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.buffList_.WriteTo(ref output, ChessRogueBuff._repeated_buffList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060016F7 RID: 5879 RVA: 0x000416B0 File Offset: 0x0003F8B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.buffList_.CalculateSize(ChessRogueBuff._repeated_buffList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060016F8 RID: 5880 RVA: 0x000416E9 File Offset: 0x0003F8E9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueBuff other)
		{
			if (other == null)
			{
				return;
			}
			this.buffList_.Add(other.buffList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060016F9 RID: 5881 RVA: 0x00041717 File Offset: 0x0003F917
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060016FA RID: 5882 RVA: 0x00041720 File Offset: 0x0003F920
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 18U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.buffList_.AddEntriesFrom(ref input, ChessRogueBuff._repeated_buffList_codec);
				}
			}
		}

		// Token: 0x04000980 RID: 2432
		private static readonly MessageParser<ChessRogueBuff> _parser = new MessageParser<ChessRogueBuff>(() => new ChessRogueBuff());

		// Token: 0x04000981 RID: 2433
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000982 RID: 2434
		public const int BuffListFieldNumber = 2;

		// Token: 0x04000983 RID: 2435
		private static readonly FieldCodec<RogueCommonBuff> _repeated_buffList_codec = FieldCodec.ForMessage<RogueCommonBuff>(18U, RogueCommonBuff.Parser);

		// Token: 0x04000984 RID: 2436
		private readonly RepeatedField<RogueCommonBuff> buffList_ = new RepeatedField<RogueCommonBuff>();
	}
}
